package org.example.websockettest.param;

public class DataMessage {
    private String sender;
    private String reception;
    private String body;
    private String flag;

    public DataMessage() {
    }

    public DataMessage(String sender, String reception, String body, String flag) {
        this.sender = sender;
        this.reception = reception;
        this.body = body;
        this.flag = flag;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReception() {
        return reception;
    }

    public void setReception(String reception) {
        this.reception = reception;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "DataMessage{" +
                "sender='" + sender + '\'' +
                ", reception='" + reception + '\'' +
                ", body='" + body + '\'' +
                ", flag='" + flag + '\'' +
                '}';
    }
}
